package com.blog.bean.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @author 任浩
 * @version 1.0
 */

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class LoginVo {
    private Integer id;

    private String username;

    private String password;

    private String salt; //验证码

    private String email;

    private Integer type; //0-普通用户; 1-超级管理员; 2-版主

    private Integer status; //'0-未激活; 1-已激活

    private String activationCode;

    private String headerUrl;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime; //用户创建时间

    private String vaild;  //验证码
}
